package com.example.administrator.idocment.msgpack.modelpack;

import android.graphics.Bitmap;

import com.example.administrator.idocment.docment.tool.UpFlag;

/**
 * Created by Administrator on 2017/9/6 0006.
 */
public class AviModel {
    String path;
    String title;
    String duration;//持续时间
    Bitmap firstThumb;
    Boolean selectState=false;
    Boolean upState=false;

    Boolean proState=false;

    public Boolean getProState() {
        return proState;
    }

    public void setProState(Boolean proState) {
        this.proState = proState;
    }


    public Bitmap getFirstThumb() {
        return firstThumb;
    }

    public void setFirstThumb(Bitmap firstThumb) {
        this.firstThumb = firstThumb;
    }

    public String getDuration() {
        return duration;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public Boolean getSelectState() {
        return selectState;
    }

    public void setSelectState(Boolean selectState) {
        this.selectState = selectState;
    }


    public Boolean getUpState() {
        return UpFlag.upKey.get(path)!=null;
    }

    public void setUpState(Boolean upState) {
        if(upState)
        {
            UpFlag.upKey.put(path,true);
        }

        this.upState=upState;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
